Description |
:
**Applies to**: S0 and S1 pricing tiers.
The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The static image service renders a user-defined, rectangular image containing a map section using a zoom level from 0 to 20. The supported resolution range for the map image is from 1x1 to 8192x8192. If you are deciding when to use the static image service over the map tile service, you may want to consider how you would like to interact with the rendered map. If the map contents will be relatively unchanging, a static map is a good choice. If you want to support a lot of zooming, panning and changing of the map content, the map tile service would be a better choice.
Service also provides Image Composition functionality to get a static image back with additional data like; pushpins and geometry overlays with following S0 and S1 capabilities.
In S0 you can:
- Render up to 5 pushpins specified in the request
- Provide one custom image for the pins referenced in the request
- Add labels to the pushpins
In S1 you can:
- Render pushpins through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)
- Specify multiple pushpin styles
- Render circle, polyline and polygon geometry types.
- Render of supported GeoJSON geometry types uploaded through [Azure Maps Data Service](https://aka.ms/AzureMapsMapDataService)
Please see [How-to-Guide](https://aka.ms/AzureMapsHowToGuideImageCompositor) for detailed examples.
_Note_ : Either **center** or **bbox** parameter must be supplied to the
API.
The supported Lat and Lon ranges when using the **bbox** parameter, are as follows: |Zoom Level | Max Lon Range | Max Lat Range| |:----------|:----------------|:-------------| |0 | 360.0 | 170.0 | |1 | 360.0 | 170.0 | |2 | 360.0 | 170.0 | |3 | 360.0 | 170.0 | |4 | 360.0 | 170.0 | |5 | 180.0 | 85.0 | |6 | 90.0 | 42.5 | |7 | 45.0 | 21.25 | |8 | 22.5 | 10.625 | |9 | 11.25 | 5.3125 | |10 | 5.625 | 2.62625 | |11 | 2.8125 | 1.328125 | |12 | 1.40625 | 0.6640625 | |13 | 0.703125 | 0.33203125 | |14 | 0.3515625 | 0.166015625 | |15 | 0.17578125 | 0.0830078125 | |16 | 0.087890625 | 0.0415039063 | |17 | 0.0439453125 | 0.0207519531 | |18 | 0.0219726563 | 0.0103759766 | |19 | 0.0109863281 | 0.0051879883 | |20 | 0.0054931641 | 0.0025939941 | |
Reference | : Link ¶ |
⚼ Request
GET:
/map/static/{format}
{
x-ms-client-id:
string
,
subscription-key:
string
,
api-version:
string
,
format:
string
,
layer:
string
,
style:
string
,
zoom:
integer
,
center:
string
,
bbox:
string
,
height:
integer
,
width:
integer
,
language:
string
,
view:
string
,
pins:
array
,
path:
array
,
}
⚐ Response (200)
{
$schema:
object
,
}
⚐ Response (400)
{
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
target:
string
,
}
⚐ Response (401)
{
$headers:
{
,
www-authenticate:
string
,
}
$schema:
}
{
,
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
target:
string
,
}
⚐ Response (403)
{
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
target:
string
,
}
⚐ Response (404)
{
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
target:
string
,
}
⚐ Response (500)
{
error:
}
{
,
code:
string
,
message:
string
,
details:
[
,
string
,
]
target:
string
,
}